package com.tiger.project.service.impl;

import java.util.List;

import com.tiger.project.domain.ContractSponsorEnclosure;
import com.tiger.project.mapper.ContractSponsorEnclosureMapper;
import com.tiger.project.service.IContractSponsorEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【合同发起附件】Service业务层处理
 *
 * @author standard
 * @date 2022-09-22
 */
@Service
public class ContractSponsorEnclosureServiceImpl implements IContractSponsorEnclosureService {
    @Autowired
    private ContractSponsorEnclosureMapper contractSponsorEnclosureMapper;

    /**
     * 查询【合同发起附件】
     *
     * @param id 【合同发起附件】主键
     * @return 【合同发起附件】
     */
    @Override
    public ContractSponsorEnclosure selectContractSponsorEnclosureById(Long id) {
        return contractSponsorEnclosureMapper.selectContractSponsorEnclosureById(id);
    }

    /**
     * 查询【合同发起附件】列表
     *
     * @param contractSponsorEnclosure 【合同发起附件】
     * @return 【合同发起附件】
     */
    @Override
    public List<ContractSponsorEnclosure> selectContractSponsorEnclosureList(ContractSponsorEnclosure contractSponsorEnclosure) {
        return contractSponsorEnclosureMapper.selectContractSponsorEnclosureList(contractSponsorEnclosure);
    }

    /**
     * 新增【合同发起附件】
     *
     * @param contractSponsorEnclosure 【合同发起附件】
     * @return 结果
     */
    @Override
    public int insertContractSponsorEnclosure(ContractSponsorEnclosure contractSponsorEnclosure) {
        return contractSponsorEnclosureMapper.insertContractSponsorEnclosure(contractSponsorEnclosure);
    }

    /**
     * 修改【合同发起附件】
     *
     * @param contractSponsorEnclosure 【合同发起附件】
     * @return 结果
     */
    @Override
    public int updateContractSponsorEnclosure(ContractSponsorEnclosure contractSponsorEnclosure) {
        return contractSponsorEnclosureMapper.updateContractSponsorEnclosure(contractSponsorEnclosure);
    }

    /**
     * 批量删除【合同发起附件】
     *
     * @param ids 需要删除的【合同发起附件】主键
     * @return 结果
     */
    @Override
    public int deleteContractSponsorEnclosureByIds(Long[] ids) {
        return contractSponsorEnclosureMapper.deleteContractSponsorEnclosureByIds(ids);
    }

    /**
     * 删除【合同发起附件】信息
     *
     * @param id 【合同发起附件】主键
     * @return 结果
     */
    @Override
    public int deleteContractSponsorEnclosureById(Long id) {
        return contractSponsorEnclosureMapper.deleteContractSponsorEnclosureById(id);
    }
}
